<template>
    <div class="report">
      <div class="title">
        <div>
     
        欣享医疗远程咨询报告单
        </div>
       
    
      </div>

      <div class="line"></div>
      <ul class="info">
        <li class="item">
          <span>姓名:{{pat.name}}</span>
          <span class="sex">性别:{{pat.sex==='2 '?'女':'男'}}</span>
          <span>年龄:{{pat.age}}</span>
          <span>设备类型:{{info.information}}</span>

        </li>
        <li class="item">
       
        </li>
        <li class="item">
          <span>检查部位:{{pat.part}}</span>
            <span style='font-size:10px;'>诊断时间:{{info.submitDate}}</span>
           
           <span>拍摄时间:{{info.studyDate}}</span>
           <span>电话:{{info.tel}}</span>
        </li>
         <!-- <li class="item">
           <span>临床诊断:{{info.part}}</span>
        </li> -->
      </ul>
      <div class="line"></div>

      <div class="desc">
        <div class="font">描述:</div>
        <div>{{info.dcm_account}}</div>
      </div>

      <div class="diagnosis">
        <div class="font">诊断:</div>
        <div>{{info.doctor_opinion}}</div>
      </div>

      <div class="footer">
        <div class="doctor">
          <span>审核医师：{{info.doctorName}} </span>
          <span>报告记录：{{info.doctorName}}</span>
          <span>打印时间：{{date}}</span>
        </div>
        <div class="line"></div>
        <div class="footer-tip">
              <div class="dcmid">影像唯一ID：{{info.dcmId}}</div>
          注：本报告仅供临床医师参考
        </div>
      </div>
      <div>

      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "reportExport",
  props: ["info", "desc", "diagnosis","date",'pat'],
  data () {
    return {
      // printDate:''
    }
  },
  components: {},
  mounted() {
    // console.log(info,'readonly')
  },
  methods: {
  //  getDate(){
  //   this.printDate=date .toLocaleTimeString();
  //  },
    print () {}
  }
}
</script>

<style lang="scss">
.report {
  display: none;
  width: 100%;
  padding: 10px;

  .title {
    font-size: 24px;
    text-align: center;
    font-weight:bold;
  }

  .tip {
    margin: 8px 0 8px 0;
  }

  .line {
    height: 2px;
    background-color: #000;
    width: 100%;
  }
  
  .info {
    padding: 4px;

    .item {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-top: 8px;

      span {
        display: inline-block;
        width: 24%;
         font-size:12px;
      }
    }
  }

  .desc,
  .diagnosis {
    padding: 4px;
  }

  .diagnosis {
    margin-top: 40px;
  }

  .footer {
    margin-top: 80px;

    .doctor{
      display: flex;
      // justify-content:;
      margin-bottom: 8px;
      span{
        flex-direction:column;
        width: 30%;
      }
      span:last-child{
        width: 40%;
      }
    }

    .footer-tip{
      margin-top: 8px;
    }
  }

  .font {
    font-weight: 600;
  }
  .dcmid{
    font-size: 12px;
    // float:right;
    // margin: 10px;
  }
}
</style>


